package ooo.reindeer.data.annotation;

import ooo.reindeer.data.option.Type;

import java.lang.annotation.*;

/**
 * 无符号变长整型
 * Unsigned 8-32bit integer
 *
 * @author songbailin
 * @date 2022/08/25
 */
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.FIELD)
@Inherited
public @interface UnsignedIntVar {

    int AUTO_SIZE = -4912653;
    int DEFAULT_SIZE = 1;

    long maxValue() default 34359738367L;
    long miniValue() default 0L;

    Type type() default Type.UnsignedIntVar;

}
